import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/shopindex'
import Car from '@/components/shopcar'
import xinwen from '@/components/xinwen'
import xinwenxiangqing from '@/components/xinwenxiangqing'
import goods from '@/components/goods'
import goodsxiangqing from '@/components/goodsxiangqing'
import merber from '@/components/merber'
import search from '@/components/search'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'shopindex',
      component:Index
    },
    {
    	path:'/car',
    	name:'shopcar',
    	component:Car
    },
    {
    	path:'/xinwen',
    	name:'xinwen',
    	component:xinwen
    },
    {
    	path:'/xinwen/xinwenxiangqing/:id',
    	name:'xinwenxiangqing',
    	component:xinwenxiangqing
    },
    {
    	path:'/goods',
    	name:'goods',
    	component:goods
    },
    {
    	path:'/goods/goodsxiangqing/:id',
    	name:'goodsxiangqing',
    	component:goodsxiangqing
    },
    {
        path:'/merber',
        name:'merber',
        component:merber
    },
    {
        path:'/search',
        name:'search',
        component:search
    }
  ],
  linkActiveClass:'mui-active'
})
